package org.colour.amber.rest.api;

import jakarta.validation.constraints.*;
import java.util.Date;
import java.util.List;

/**
 * @author jasonfu
 * @date 2021/8/19 16:50
 */
public record User(
        @NotBlank(message = "name不能为空") @Size(min = 6, max = 16, message = "name长度范围[6, 16]") String name,
        @NotNull(message = "age不能为空") Integer age,
        @NotNull(message = "birthday不能为空") Date birthday,
        List<ContactInfo> contactInfos) {}
